package org.aeon.service;


import org.aeon.entity.FriendApply;
import org.aeon.entity.UserRelation;

import java.util.List;

/**
 * @author MissingAeon
 * @email nian0950@qq.com
 * @date 2024-01-25 17:39:34
 */
public interface UserRelationService {
    /**
     * 添加好友
     *
     * @param friendApply
     * @return
     */
    boolean addFriends(FriendApply friendApply);

    /**
     * 添加黑名单
     *
     * @param userId
     * @param userId2
     * @return
     */
    boolean blacklisted(Long userId, Long userId2);

    /**
     * 取消关联
     *
     * @param userId
     * @param userId2
     * @return
     */
    boolean disassociate(Long userId, Long userId2);

    /**
     * 查询两个用户间的关系
     *
     * @param userId
     * @param userId2
     * @return
     */
    UserRelation queryRelation(Long userId, Long userId2);

    /**
     * 查询用户的所有特定关系
     *
     * @param userId
     * @return
     */
    List<UserRelation> queryRelations(Long userId, Boolean relation);

}

